/**
 * 
 */
package com.et114.modules.products.procontent.dao;

import com.et114.core.dao.impl.BaseDAOImpl;
import com.et114.modules.products.procontent.vo.ProContent;

/*
 * @author guanhw
 */
public class ProContentDao extends BaseDAOImpl {
	public Long saveProContent( ProContent pc  ) throws Exception {
		return ( Long )insert ( pc , "insertProContent" ) ;
	}
	
	public void updateProContent( ProContent pc ) throws Exception {
		update( pc , "updateProContent" ) ; 
	}
	
	//TODO 
	public ProContent getProContent( ProContent pc ) throws Exception { 
		return ( ProContent  ) load( pc  , "getProContent" ) ; 
	}
	
	public ProContent getProContentCacheModel( ProContent pc ) throws Exception { 
		return ( ProContent  ) load( pc  , "getProContentCacheModel" ) ; 
	}
	
	public ProContent getProContentById( Long contentId  ) throws Exception {
		return ( ProContent  ) load( contentId  , "getProContentById" ) ; 
	}
	
	public void removeProContent( ProContent pc ) throws Exception {
		delete( pc , "removeProContent" ) ;
	}
	
}
